public class Test {
    public static int max2(int a, int b) {
        return a > b? a : b;
}
    public static int max3(int x, int y, int z) {
        return max2(max2(x, y), z);
    }
    public static void main(String[] args) {
        int result = max3(5, 8, 3);
        System.out.println("三个数中的最大值为：" + result);
    }
}
